﻿/*
 * Created by SharpDevelop.
 * User: JOHNNY
 * Date: 08-01-2015
 * Time: 16:14
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
public delegate int DelegateOp(int x);
namespace aula14
{
	/// <summary>
	/// Description of Class1.
	/// </summary>
	class Dele2
	{
		static int Quadrado(int x) {
			Console.WriteLine(" nada faz");
			return x * x;
		}
		static int Cubo(int x) { return x*x*x; }
		static void Main()
		{
			DelegateOp Op = Quadrado;
			Op+=Cubo;
			int z = Op(3);
			Console.WriteLine(z);
		}
	}
}
